package com.bootdo.contract.dao;

import com.bootdo.contract.domain.MissionDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 任务表
 * @author yang
 * @email 2795210596@qq.com
 * @date 2019-04-26 12:35:53
 */
@Mapper
public interface MissionDao {

	MissionDO get(Long id);
	
	List<MissionDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(MissionDO mission);
	
	int update(MissionDO mission);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	/**
	 * 根据用户id与状态查询
	 * @param mission
	 * @return
	 */
	List<MissionDO> getMissionListByUserId(MissionDO mission);
}
